package com.example.uppservice.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class MyController {

    @Autowired
    private RestTemplate restTemplate;


    @RequestMapping("/0101")
    public String upp_service(){
        String res = restTemplate.getForObject("http://pmc-service/pay",String.class);
        return res;
    }


}
